home *** CD-ROM | disk | FTP | other *** search
/ Animation / Animation Vol.1 (Profi ROM)(1994).iso / 3ds2pov.doc next >
Text File  |  1993-10-04  |  13KB  |  310 lines

  1. 3DS2POV Version 1.8  Oct/93
  2. Copyright (c) 1993 by Steve Anger and Jeff Bowermaster
  3.  
  4. This program reads a 3D Studio .3DS file and writes a POV-Ray, Vivid or
  5. Polyray raytracer scene file. Cameras, lights, spotlights, and mesh objects
  6. are all converted. Basic material properties such as colour, reflection,
  7. and transparency are converted however image maps and bump maps must be
  8. converted manually.
  9.  
  10. POV-Ray users! Since POV-Ray 2.0 has now been released to the public the
  11. default output format has been changed to POV-Ray 2.0. If you're still
  12. using POV-Ray 1.0 you can still generate 1.0 compatible files by using
  13. the -op1 switch.
  14.  
  15.  
  16. Hardware requirements:
  17.  
  18. The 3ds2pov.exe executable requires a minimum of a 386 or a 486 with a
  19. math co-processor. At least 2MB RAM is recommended. It's compatible with
  20. most 386 memory managers and DPMI servers.
  21.  
  22.  
  23. Syntax:  3ds2pov inputfile[.3ds] [outputfile] [options]
  24.  
  25. Options:
  26. -snnn        - Generates smooth triangles. The boundaries between triangles
  27.                are only smoothed if the angle between the triangles is less
  28.                that nnn degrees. -s0 will not smooth any triangles while
  29.                -s180 will smooth all triangles. Values from -s45 to -s90
  30.                usually work well. If unspecified smoothing defaults to -s70.
  31.  
  32. -l<filename> - Specifies an include file containing texture declarations for
  33.                common 3DS materials. Up to 10 libraries can be specified.
  34.  
  35. -a<filename> - Use animation information in specified .vue file.
  36.  
  37. -fnnn        - Generate frame nnn of animation (must be used with -a
  38.                parameter).
  39.  
  40. -x<object>   - Exclude this object from the conversion.
  41.  
  42. -b<object>   - Replace this object with a box during the conversion. If no
  43.                object is specified then all objects will be affected.
  44.  
  45. +i, -i       - Turn internal bounding on or off for POV-Ray. If not specified
  46.                internal bounding defaults to on for POV-Ray 1.0 and off for
  47.                POV-Ray 2.0.
  48.  
  49. +v, -v       - Turn verbose status messages on or off (off by default).
  50.  
  51. -op          - Output to POV-Ray 2.0 format (default)
  52. -op1         - Output to POV-Ray 1.0 format
  53. -ov          - Output to Vivid format
  54. -ol          - Output to poLyray format
  55. -or          - Output to Raw triangle format.
  56.  
  57. Note: When specifying object names on the command line, object names that
  58. contain spaces must be enclosed in double quotes. e.g. -x"BEACH BALL"
  59.  
  60.  
  61. Use:
  62.                3ds2pov robot -lrobotmtl.inc
  63.  
  64. assumes the input file is robot.3ds and outputs to robot.pov and
  65. robot.inc in the current directory. The file robot.pov will contain
  66. the camera, light sources, and list of materials used (basically everything
  67. you may want to edit) and robot.inc contains the triangle mesh data.
  68.  
  69. Predefined materials in robotmtl.inc.inc will be automatically used if the
  70. names  match (case is important), otherwise 3ds2pov will generate a material
  71. definition based on the information in the .3DS file. The files 3ds.inc and
  72. v3ds.vs are included as examples of how to setup material libraries for
  73. POV-Ray and Vivid.
  74.  
  75.  
  76. Materials Conversion:
  77.  
  78. The 3DS to raytracer material properties conversion is functional but far
  79. from perfect. Basic material properties such as object colour, reflection
  80. and transparency are automatically converted but image maps, bump maps, and
  81. reflection maps are ignored. In most cases the converted material should
  82. match the original reasonably well however it's not uncommon for some
  83. materials to come out completely wrong. Expect to have to do some manual
  84. tweaking.
  85.  
  86.  
  87. Smoothing:
  88.  
  89. 3ds2pov doesn't use 3D Studio's smoothing group information and instead
  90. does it's own smoothing. The amount of smoothing applied is controlled by
  91. the -s parameter and specifies the maximum angle that will be smoothed. The
  92. default of -s70 usually works for most scenes but you may find that some
  93. scenes require more or less smoothing. This parameter works just like the
  94. Auto Smooth option in 3DS.
  95.  
  96.  
  97. Animation:
  98.  
  99.   The animation information is exported from 3ds via a .vue file that can
  100. be created in the 3DS keyframer (Render/Setup/Make .VUE). By specifying the
  101. name of the .vue file and a frame number 3ds2pov will generate a scene file
  102. for that specific frame.
  103.  
  104.    e.g.    3ds2pov robot -arobot.vue -f5
  105.  
  106. The option -arobot.vue tells it to get the animation information from file
  107. robot.vue and option -f5 tells it to render frame #5. To generate a whole
  108. animation you can create a batch file that runs 3ds2pov and the raytracer
  109. for each frame in the animation. The program 3dsani is included to make the
  110. generation of this file a little easier.
  111.  
  112. Syntax:  3dsani inputfile [options]
  113.  
  114. Options:
  115. -a<filename> - Specifies the name of the  3ds animation (.vue) file.
  116.                If unspecified defaults to inputfile.vue.
  117.  
  118. -t<filename> - Specifies the name of the template (.tpl) file.
  119.                If unspecified defaults to inputfile.tpl.
  120.  
  121. -o<filename> - Specifies the name of the output (.bat) file.
  122.                If unspecified defaults to inputfile.bat.
  123.  
  124. -snnn        - Start animation at frame nnn. If unspecified the start frame
  125.                is taken from the .vue file.
  126.  
  127. -ennn        - End animation at frame nnn. If unspecified the end frame is
  128.                taken from the .vue file.
  129.  
  130. -pnnn        - Render every nnn'th frame. If unspecified defaults to 1.
  131.  
  132.  
  133. Example:
  134.              3dsani robot -tani1.tpl
  135.  
  136. generates a batch file named robot.bat that will execute 3ds2pov and povray
  137. once for each frame of the animation. The beginning and ending frame numbers
  138. are determined from the file robot.vue. The format of the batch file is
  139. determined from the template file ani1.tpl. Basically the template file is
  140. duplicated once for each frame but with all occurrences of the characters $
  141. and # replaced by the file name and frame number respectively. Several
  142. sample template files are included which can be tailored to your specific
  143. needs.
  144.  
  145.  
  146. Environment Variable:
  147.  
  148. If you find that you're often using the same command options over and over
  149. again you can set up your default command line options in the 3DS2POV
  150. environment variable. e.g. If you generally use Vivid as your renderer you
  151. may want to add the following line to your autoexec.bat:
  152.  
  153.                          set 3DS2POV=-ov
  154.  
  155. Commands specified in the environment variable will be overridden by those
  156. specified on the command line.
  157.  
  158.  
  159. Known Bugs/Problems:
  160.  
  161. Orthogonal/user viewports, and camera roll are not implemented.
  162.  
  163. Solid background colours work with POV-Ray and Polyray but not with Vivid.
  164.  
  165. Fog works with POV-Ray but not with Polyray or Vivid.
  166.  
  167. Gradient and image mapped backgrounds are not implemented.
  168.  
  169. The camera field-of-view conversion isn't perfect. The rendered FOV will be
  170. close to the original but it won't be exact.
  171.  
  172. If the 3DS file contains more than one camera it'll use the first one it
  173. comes across. All additional cameras will be commented out.
  174.  
  175. There is a known problem with the version of POV-Ray 1.0 that was shipped with
  176. the Image Lab book that prevents smooth triangles from rendering. If you have
  177. this version you can download the latest version from CompuServe or a local
  178. BBS (look for POVIBM.ZIP).
  179.  
  180. POV-Ray 1.0 doesn't handle refraction very well for triangle meshes. If you
  181. want realistic refraction in your image you should output to POV-Ray 2.0 with
  182. no bounding boxes (2.0 will bound the scene itself). Also only a single
  183. material should be used on each refracting object (don't apply materials
  184. to individual faces).
  185.  
  186.  
  187. Files included in archives:
  188.  
  189. 3DS2POV.EXE  - The converter.
  190. 3DSANI.EXE   - Animation generation utility.
  191. 3DS2POV.DOC  - This file!
  192.  
  193. SAMPLES.ZIP  - Sample files.
  194.   DIAM.3DS     - A sparkling diamond. Diamond data from Jeff B.
  195.   ROBOT.3DS    - A simple robot animation
  196.   ROBOT.VUE    - Exported animation information from ROBOT.3DS
  197.   POVDIAM.BAT  - Batch file to render DIAM.3DS with POV-Ray 2.0
  198.   VIVDIAM.BAT  -   "    "   "    "       "      "   Vivid
  199.   POVROBOT.BAT - Batch file to render ROBOT.3DS animation wi